package com.traffic.api;

import java.util.Set;

import com.gxhl.api.core.GdpApiApplication;
import com.gxhl.api.core.Provider.JsonApiReader;
import com.traffic.api.restful.CustomerRestful;
import com.traffic.api.restful.OrderRestful;
import com.traffic.api.restful.PhoneRestful;
import com.traffic.api.restful.ProductRestful;

/**
 * 类描述: 启动类加载资源
 * 
 */
public class ApiAppliance extends GdpApiApplication {

	/**
	 * 定义Rest资源
	 */
	public void getResources(Set<Class<?>> classes) {
		classes.add(OrderRestful.class);
		classes.add(CustomerRestful.class);
		classes.add(ProductRestful.class);
		classes.add(PhoneRestful.class);
	}

	/**
	 * 定义解析器
	 */
	public void getResolver(Set<Class<?>> classes) {
		classes.add(JsonApiReader.class);
	}

}

